package com.yh.service;

import com.yh.javabean.Role;
import com.yh.javabean.Users;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UsersService extends UserDetailsService {
    //查询用户列表
    List<Users> findAll();

    List<Role>findAllRole();

    void addUsers(Users users,int roleId);
    //删除用户
    void deleteUsers(int id);

    //修改用户
    void editUsers(Users users,int roleId);

    //关联查询
    Users findOne(int id);
}
